sleep 5
i=1
while [ 1 ]
do
	dhcpcd br-lan
	sleep 2
	ps_dhcp_num=`ps | grep "dhcpcd br-lan" | grep -v "grep " | wc -l`
	if [ $ps_dhcp_num == "1" ]; then
		break
	fi
	if [ $i == "2" ];then
		/etc/init.d/network restart
		recev_AC_cmd &
		sleep 86400
		i=1
	else
		i=$(($i+1))
	fi
done
AP_soft_daemon.sh &

